How to write the output into a file and also display the same output on the CMD window